package com.iot.modbus.factory;

import com.iot.modbus.reader.ReaderSession;
import com.serotonin.modbus4j.exception.ModbusTransportException;
import com.serotonin.modbus4j.ip.IpParameters;
import com.serotonin.modbus4j.msg.ModbusRequest;

public interface ReaderSessionFactory {

    ReaderSession createReaderSession(IpParameters ipParameters);

    ModbusRequest createReadRequest(int slaveId, int range, int offset, int length) throws ModbusTransportException;

}
